@extends('layout.home')
@section('title', '北欧多功能沙发- 门屋网3d模型分享交流平台-3d模型下载-3d模型下载网站')
@section('content')
<body>
<style>
    html, body {
        position: relative;
        height: 100%;
    }
    body {
        background: #000;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        font-size: 14px;
        color:#000;
        margin: 0;
        padding: 0;
    }
    .swiper-container {
        width: 100%;
        height: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .swiper-slide {
        background-size: cover;
        background-position: center;
    }
    .gallery-top {
        height: 80%;
        width: 100%;
    }
    .gallery-thumbs {
        height: 20%;
        box-sizing: border-box;
        padding: 10px 0;
    }
    .gallery-thumbs .swiper-slide {
        width: 25%;
        height: 100%;
        opacity: 0.4;
    }
    .gallery-thumbs .swiper-slide-thumb-active {
        opacity: 1;
    }

</style>
    @include('layout._header',["userinfo"=>$userinfo])
    <div class="newmodel-wrapper">
        <div class="newmodel-place m">
            <span class="fl">您现在的位置：</span>
            <ol class="breadcrumb fl">
                <li><a href="/">门屋网</a></li>
                <li><a href="">模型</a></li>
                <li><a href="">家装空间</a></li>
                <li><a href="">卧室</a></li>
                <li class="active">{{$goodinfo->goodname}}[模型ID：{{$goodinfo->gcode}}]</li>
            </ol>
        </div>
        <div class="newmodel-main m">
{{--            **************************************************--}}
            <div class="newmodel-mainleft fl">
                <div class="swiper-container gallery-top swiper-container-initialized swiper-container-horizontal" style="height: 400px;">
                    <div class="swiper-wrapper" style="transition-duration: 0ms; transform: translate3d(0px, 0px, 0px);">
                        @foreach($imgarr as $v)
                            <div class="swiper-slide" style="background-image: url('https://small.justeasy.cn/201910/20191016082817_5da66421b8d02.jpg'); width: 780px;"></div>
                        @endforeach
                    </div>
                    <!-- Add Arrows -->
                    <div class="swiper-button-next swiper-button-white" tabindex="0" role="button" aria-label="Next slide" aria-disabled="false"></div>
                    <div class="swiper-button-prev swiper-button-white" tabindex="0" role="button" aria-label="Previous slide" aria-disabled="false"></div>
                    <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
                </div>
                {{--                缩略图--}}
                <div class="swiper-container gallery-thumbs swiper-container-initialized swiper-container-horizontal swiper-container-free-mode swiper-container-thumbs" style="height: 200px">
                    <div class="swiper-wrapper" style="transition-duration: 0ms; transform: translate3d(0px, 0px, 0px);">
                        @foreach($imgarr as $v)
                            <div class="swiper-slide" style="background-image: url('https://small.justeasy.cn/201910/20191016082817_5da66421b8d02.jpg'); width: 376.5px; margin-right: 10px;"></div>
                        @endforeach
                    </div>
                    <span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>
                </div>
                {{--                缩略图--}}
            </div>
            <!-- ******************************************* -->
            <div class="newmodel-mainright fr">
                <div class="model-title">
                    <span class="tit"><span style="margin-right: 10px;font-size: 20px;">{{$goodinfo->goodname}} ID：[{{$goodinfo->gcode}}]</span></span>
                    <!-- <span class="copy" onclick="copy()">复制</span> -->
                    <span class="tit-fr">
                        <!-- <textarea id="biao1">现代轻奢卧室426418</textarea> -->
                        <!-- <input type="button" class="copy" onclick="copyUrl2()" value="复制"> -->
                    </span>
                </div>
                <div class="details-box">
                    <div class="details-box-fl fl">
                        <ul>
                            <li>
                                <i class="icon icon-eyes"></i>
                                <span id="model_view">下载次数:{{$goodinfo->dcount}}</span>
                            </li>
{{--                            <li><i class="icon icon-download1"></i><span id="model_downnums">115</span></li>--}}
{{--                            <li>--}}
{{--                                <i class="icon icon-newstar"></i>--}}
{{--                                <span class="favorite-num">48</span>--}}
{{--                            </li>--}}
                        </ul>
                    </div>
                </div>
                <div class="img-info">
                    <ul id="model-detail-info">
                        <li>
                            <span class="fl">灯光：</span>
                            <span class="fr2">{{$goodinfo->dg}}</span>
                        </li>
                        <li><span class="fl">材质贴图：</span><span class="fr2">{{$goodinfo->cztt}}</span></li>
                        <li>
                            <span class="fl">风格：</span>
                            <span class="fr2">{{$goodinfo->fg}}</span>
                        </li>
                        <li>
                            <span class="fl">上传时间：</span>
                            <span class="fr2">{{date('Y-m-d',$goodinfo->createtime)}}</span>
                        </li>
                        <li><span class="fl">面数：</span><span class="fr2">{{$goodinfo->ms}}</span></li>
                    </ul>
                    <i class="icon icon-vr"></i>
                </div>
                <div class="version">
                    <div class="version-fl fl">
                        选择版本：
                    </div>
                    <div class="version-fr fr">
                        <ul id="modelversion" class="model-details-version">
{{--                            <li data="177009" class="active">--}}
{{--                                <span class="fl">MAX 2012文件</span>--}}
{{--                                <span class="fr">84.69 MB</span>--}}
{{--                            </li>--}}
                        </ul>
                    </div>
                </div>
                <form id="gform">
                    {{csrf_field()}}
                <div class="download-s">
                    <div class="stxt">
                        下载需：<span class="price">{{$goodinfo->price}}元</span>
{{--                        <a href="https://reg.justeasy.cn/recharge/recharge/index.html#nianhuiyuan" target="_blank"--}}
{{--                            style="text-decoration: underline;">年会员九折</a>--}}
{{--                        <a href="https://reg.justeasy.cn/recharge/recharge/index.html" class="org" target="_blank"--}}
{{--                            id="model-details-recharge">金点充值</a>--}}
{{--                        <span class="stxt-h">--}}
{{--                            <i class="fa fa-question-circle"></i>--}}
{{--                            <span class="stxt-s-top ">--}}
{{--                                1元约等于10金点哦~--}}
{{--                            </span>--}}
{{--                        </span>--}}
                        <input type="radio" name="down_type" value="3" class="downtype" data-value="{{$goodinfo->score}}">金点支付
                        <input type="radio" name="down_type" value="2" class="downtype" data-value="{{$goodinfo->price}}" checked>扫码支付
                        <input type="hidden" name="gid" value="{{$goodinfo->id}}">
{{--                        <input type="hidden" name="paytype" class="paytype" value="">--}}
                    </div>
                    <div class="download-txt-fr download-txt-fr2">
                        <div class="download-txt-frfl fl">
                            <a class="btn btn-org" target="_blank" onclick="$api.modelversion();">
                                <span class="fw">购买模型</span>
{{--                                <span>30天内重复下载免费</span>--}}
                            </a>
                        </div>
                        @if($goodinfo->already_shop==1)
                        <div class="download-txt-frfr fr">
                            <a class="btn btn-black btnCart" onclick="$api.downloadfiles('{{$goodinfo->id}}')">
                                <span class="fw">一键下载模型</span>
                                <span>30天内重复下载免费</span>
                            </a>
                        </div>
                            @endif
                    </div>
                </div>
                </form>
                <div class="newmodel-buttons">
                    <div id="shoucang">
                        <a class="btn" onclick="showfavorite();" id="fa_active">
                            <!-- 你收藏的时候 添加active样式 -->
                            <i class="icon icon-sc"></i>

                            <span class="shoucang-span">收藏(<span class="favorite-num"
                                    style="float: none">48</span>)</span>

                        </a>
                    </div>
                    <div style="display: none" id="yishoucang">
                        <a class="btn active" onclick="showfavorite();" id="fa_active">
                            <!-- 你收藏的时候 添加active样式 -->
                            <i class="icon icon-sc"></i>
                            <span class="shoucang-span">已收藏(<span class="favorite-num"
                                    style="float: none">48</span>)</span>
                        </a>
                    </div>
                    <a class="btn" onclick="javascript:document.getElementById('img-message').scrollIntoView()">
                        <i class="icon icon-ly"></i>

                        <span id="comment_num">评论(<span style="float: none" class="comment_num">0</span>)</span>

                    </a>
                    <a class="btn last" onclick="modelerror();">
                        <i class="icon icon-search"></i>
                        模型报错
                    </a>
                </div>

                <div class="img-designer">
                    <div class="left">
                        <div class="photo fl">
                            <a href="https://www.justeasy.cn/designer/515937.html"><img
                                    src="https://small.justeasy.cn/201910/20191016082817_5da66421b8d02.jpg"><i
                                    class="c-heat"></i></a>
                        </div>
                        <div class="details fl">
                            <span class="name">
                                <a href="https://www.justeasy.cn/designer/515937.html">admin </a>
                                <!--                        <a href="https://www.justeasy.cn/sign.html?_gtm=hy" target="_blank">-->
                                <!--                            <img src="https://res1.justeasy.cn/images/vip/vip-small-l2.png" alt="2级会员" border="0">-->
                                <!--                        </a>-->
                                <a href="http://club.justeasy.cn/bbs/detail-312-13.html" class="slrz"
                                    target="_blank">管理员</a> </span>
                            <span class="signature ellipsis">装修设计18915707676</span>
                        </div>
{{--                        <div class="text-center" id="je_new_follow">--}}
{{--                            <span class="btn jeui-btn jeui-btn-s mt20  btn-org je_new_followspan" data-follow="0">+关注</span>--}}
{{--                        </div>--}}
                    </div>
{{--                    <div class="smallpic">--}}
{{--                        <ul>--}}
{{--                            <li>--}}
{{--                                <a href="https://www.justeasy.cn/3d/id-430374.html">--}}
{{--                                    <img src="https://small.justeasy.cn/201910/20191023094434_5dafb082bc960.jpg">--}}
{{--                                </a>--}}
{{--                            </li>--}}
{{--                            <li>--}}
{{--                                <a href="https://www.justeasy.cn/3d/id-430003.html">--}}
{{--                                    <img src="https://small.justeasy.cn/201910/20191022094011_5dae5dfb6a62a.jpg">--}}
{{--                                </a>--}}
{{--                            </li>--}}
{{--                            <li>--}}
{{--                                <a href="https://www.justeasy.cn/3d/id-429538.html">--}}
{{--                                    <img src="https://small.justeasy.cn/201910/20191021090117_5dad035d6fd3d.jpg">--}}
{{--                                </a>--}}
{{--                            </li>--}}
{{--                        </ul>--}}
{{--                    </div>--}}
                </div>
            </div>
            <!-- *************************************************** -->
        </div>
        <!-- ******************************************************************************** -->
        <div class="model-cont2 m">
            <div class="newmodel-title">
                <h3>推荐模型</h3>
            </div>
            <div class="a-links">
                <ul id="biaoqianactive" style="width:90%">
                    <li class="southispic active"><a href="">相似模型</a></li>
                    <li class="newstyle"><a href="">现代卧室</a></li>
                    <li class="床头柜"><a href="">床头柜</a></li>
                    <li class="梳妆台"><a href="">梳妆台</a></li>
                    <li class="梳妆凳"><a href="">梳妆凳</a></li>
                    <li class="多头吊灯"><a href="">多头吊灯</a></li>
                    <li class="衣柜"><a href="">衣柜</a></li>
                    <li class="床尾凳"><a href="">床尾凳</a></li>
                    <li class="床品"><a href="">床品</a></li>
                    <li class="床头台灯"><a href="">床头台灯</a></li>
                </ul>
            </div>
            <div class="newmodel-same">
                <ul class="modelsame">
                    <li>
                        <div class="pic">
                            <a href="#" target="_blank">
                            <img src="https://small.justeasy.cn/2016_8upimg/20160811154022082208.jpg"></a>
                        </div>
                        <h3><a href="" class="ellipsis">欧式卧室</a></h3>
                    </li>
{{--                    <li>--}}
{{--                        <div class="pic">--}}
{{--                            <a href="#" target="_blank">--}}
{{--                            <img src="https://small.justeasy.cn/2016_8upimg/20160811154022082208.jpg"></a>--}}
{{--                        </div>--}}
{{--                        <h3><a href="" class="ellipsis">欧式卧室</a></h3>--}}
{{--                    </li>--}}
{{--                    <li>--}}
{{--                        <div class="pic">--}}
{{--                            <a href="#" target="_blank">--}}
{{--                            <img src="https://small.justeasy.cn/2016_8upimg/20160811154022082208.jpg"></a>--}}
{{--                        </div>--}}
{{--                        <h3><a href="" class="ellipsis">欧式卧室</a></h3>--}}
{{--                    </li>--}}
{{--                    <li>--}}
{{--                        <div class="pic">--}}
{{--                            <a href="#" target="_blank">--}}
{{--                            <img src="https://small.justeasy.cn/2016_8upimg/20160811154022082208.jpg"></a>--}}
{{--                        </div>--}}
{{--                        <h3><a href="" class="ellipsis">欧式卧室</a></h3>--}}
{{--                    </li>--}}
{{--                    <li>--}}
{{--                        <div class="pic">--}}
{{--                            <a href="#" target="_blank">--}}
{{--                            <img src="https://small.justeasy.cn/2016_8upimg/20160811154022082208.jpg"></a>--}}
{{--                        </div>--}}
{{--                        <h3><a href="" class="ellipsis">欧式卧室</a></h3>--}}
{{--                    </li>--}}
{{--                    <li>--}}
{{--                        <div class="pic">--}}
{{--                            <a href="#" target="_blank">--}}
{{--                            <img src="https://small.justeasy.cn/2016_8upimg/20160811154022082208.jpg"></a>--}}
{{--                        </div>--}}
{{--                        <h3><a href="" class="ellipsis">欧式卧室</a></h3>--}}
{{--                    </li>--}}
{{--                    <li>--}}
{{--                        <div class="pic">--}}
{{--                            <a href="#" target="_blank">--}}
{{--                            <img src="https://small.justeasy.cn/2016_8upimg/20160811154022082208.jpg"></a>--}}
{{--                        </div>--}}
{{--                        <h3><a href="" class="ellipsis">欧式卧室</a></h3>--}}
{{--                    </li>--}}
{{--                    <li>--}}
{{--                        <div class="pic">--}}
{{--                            <a href="#" target="_blank">--}}
{{--                            <img src="https://small.justeasy.cn/2016_8upimg/20160811154022082208.jpg"></a>--}}
{{--                        </div>--}}
{{--                        <h3><a href="" class="ellipsis">欧式卧室</a></h3>--}}
{{--                    </li>--}}
                </ul>
            </div>
            <div class="newmodel-title user-footprint-info">
                <h3>我的足迹</h3>
            </div>
            <div class="newmodel-sysm">
                <h4>▪ 模型使用权利说明：</h4>
                <p>
                    会员在本站下载的原创模型后,只拥有模型的使用权,著作权归原作者及门屋网所有。未经合法授权,会员不得以任何形式发布、传播、复制、转售该模型。特别地,不得擅自以门W网名义或使用“门屋”、“门屋网”（本站注册商标）名称发布、复制、转售所下载的模型,由此给本站造成损害的,本站将依法追究其相关法律责任。
                </p>
            </div>
            <div class="line-dashed"></div>
        </div>
        <!-- ******************************************************************************** -->
    </div>
    @include('layout._footer')
    <script>
        $(function () {
            $('input:radio').click(function () {
                //Code  点击触发radio时调用的方法
                let t   = $(this).attr('value'),v=$(this).attr('data-value'),str = t=='3'?`${v}金点`:`${v}元`;
                console.log(t);
                $(this).siblings('.price').html(str);
                $('.paytype').attr('value',t);
            });
        })
    </script>
    <script>

        var galleryThumbs = new Swiper('.gallery-thumbs', {
            spaceBetween: 10,
            slidesPerView: 4,
            freeMode: true,
            watchSlidesVisibility: true,
            watchSlidesProgress: true,
        });
        var galleryTop = new Swiper('.gallery-top', {
            spaceBetween: 10,
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
            thumbs: {
                swiper: galleryThumbs
            }
        });


    </script>
</body>
@endsection
